package com.ruoyi.project.infoprojectdepartment.service;

import com.alibaba.fastjson.JSONObject;
import com.ruoyi.project.infoprojectdepartment.domain.InfoProjectDepartment;

import java.util.List;
import java.util.Map;

/**
 * 协同科室项目关联Service接口
 *
 * @author ruoyi
 * @date 2022-06-29
 */
public interface IInfoProjectDepartmentService
{
    /**
     * 查询协同科室项目关联
     *
     * @param id 协同科室项目关联主键
     * @return 协同科室项目关联
     */
    public InfoProjectDepartment selectInfoProjectDepartmentById(Long id);

    /**
     * 查询协同科室项目关联列表
     *
     * @param infoProjectDepartment 协同科室项目关联
     * @return 协同科室项目关联集合
     */
    public List<InfoProjectDepartment> selectInfoProjectDepartmentList(InfoProjectDepartment infoProjectDepartment);

    /**
     * 新增协同科室项目关联
     *
     * @param infoProjectDepartment 协同科室项目关联
     * @return 结果
     */
    public int insertInfoProjectDepartment(InfoProjectDepartment infoProjectDepartment);

    /**
     * 修改协同科室项目关联
     *
     * @param infoProjectDepartment 协同科室项目关联
     * @return 结果
     */
    public int updateInfoProjectDepartment(InfoProjectDepartment infoProjectDepartment);

    /**
     * 批量删除协同科室项目关联
     *
     * @param ids 需要删除的协同科室项目关联主键集合
     * @return 结果
     */
    public int deleteInfoProjectDepartmentByIds(Long[] ids);

    /**
     * 删除协同科室项目关联信息
     *
     * @param id 协同科室项目关联主键
     * @return 结果
     */
    public int deleteInfoProjectDepartmentById(Long id);

    /**
     * 保存项目对于科室表
     * @param jsonObject
     * @return
     */
     int saveProjectDepartment(JSONObject jsonObject);

    /**
     * 科室获取需协同项目信息
     * @return
     */
    List<Map<String,Object>> getDepartmentProjectList(String projectName);
}
